home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 3006 / 3006.xpi / chrome / dwhelper.jar / content / media-list-panel.xml < prev    next >
Extensible Markup Language  |  2010-01-15  |  2KB  |  77 lines

  1. <?xml version="1.0"?>
  2. <!-- *****************************************************************************
  3.  *            Copyright (c) 2006-2009 Michel Gutierrez. All Rights Reserved.
  4.  ****************************************************************************** -->
  5. <!DOCTYPE bindings SYSTEM "chrome://dwhelper/locale/dwhelper.dtd" >
  6.  
  7. <bindings xmlns="http://www.mozilla.org/xbl"
  8.     xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  9.     xmlns:html="http://www.w3.org/1999/xhtml"
  10.     xmlns:xbl="http://www.mozilla.org/xbl">
  11.  
  12.     <binding id="MediaListPanel" extends="widgets.xml#widget">
  13.  
  14.         <xbl:content xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  15.             <hbox flex="1">
  16.                 <vbox xbl-persist="medialist-sb:width" flex="0" width="300px">
  17.                     <MediaListMenu anonid="xMenu" flex="0"/>
  18.                     <MediaList anonid="xList" flex="1"/>
  19.                     <MediaListControl anonid="xControl" flex="0"/>
  20.                 </vbox>
  21.                 <splitter/>
  22.                 <browser anonid="xView" flex="1" width="100%" height="100%" 
  23.                     frameborder="0" xbl-persist="medialist-browser:width" >
  24.                 </browser>
  25.             </hbox>
  26.             <children style="display: none;"/>
  27.         </xbl:content>
  28.  
  29.         <implementation>
  30.  
  31.             <constructor>
  32.                 <![CDATA[
  33. setTimeout(function(_this) { _this.doMonitorXBLPersist=true; },0,this);
  34. this.xControl.setView(this.xView);
  35. this.xControl.setList(this.xList);
  36.                 ]]>
  37.             </constructor>
  38.  
  39.             <method name="updateControl">
  40.                 <body>
  41.                 <![CDATA[
  42. var media=this.xList.getSelectedMedia();
  43. var medias=this.xList.getSelectedMedias();
  44. this.xControl.setSelection(media,medias);
  45.                 ]]>
  46.                 </body>
  47.             </method>
  48.  
  49.  
  50.         </implementation>
  51.         
  52.         <handlers>
  53.  
  54.             <handler event="MediaListChange">
  55.                 <![CDATA[
  56. this.xList.setList(this.xMenu.getList());
  57.                 ]]>
  58.             </handler>
  59.  
  60.             <handler event="MediaSelect">
  61.                 <![CDATA[
  62. this.updateControl();
  63.                 ]]>
  64.             </handler>
  65.  
  66.             <handler event="MediaDblClicked">
  67.                 <![CDATA[
  68. this.updateControl();
  69. this.xControl.watch();
  70.                 ]]>
  71.             </handler>
  72.         </handlers>
  73.  
  74.     </binding>
  75.  
  76. </bindings>
  77.